package com.aspose.cells;

class zbos extends zbph {
   private int a = 0;
   private double b = 0.0D;

   public zbos(boolean var1, boolean var2) {
      super(var1, false, var2);
   }

   public zagu a() {
      return (zagu)(this.a < 1 ? zza.a : new zyy(this.b));
   }

   protected boolean b() {
      return false;
   }

   protected zagu c() {
      if (this.a > 0 && this.b != 0.0D) {
         this.b *= (double)this.a / (double)(this.a + 1);
      }

      ++this.a;
      return null;
   }

   protected zagu a(int var1) {
      if (this.a > 0 && this.b != 0.0D) {
         this.b *= (double)this.a / (double)(this.a + var1);
      }

      this.a += var1;
      return null;
   }

   protected zagu a(double var1) {
      ++this.a;
      this.b += (var1 - this.b) / (double)this.a;
      return null;
   }

   protected zagu a(double var1, int var3) {
      this.b = this.b * (double)(this.a / (this.a + var3)) + var1 * (double)(var3 / (this.a + var3));
      this.a += var3;
      return null;
   }
}
